package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tanhua.domain.db.BlackList;
import com.tanhua.domain.db.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface BlackListMapper extends BaseMapper<BlackList> {

    @Select("SELECT ui.* FROM tb_black_list bl LEFT JOIN tb_user_info ui " +
            " ON bl.black_user_id = ui.id WHERE bl.user_id = #{userId}")
    IPage<UserInfo> blcakList(IPage<UserInfo> iPage,@Param("userId") Long userId);
}
